package com.example.demo.service;

import com.example.demo.main.PayWay;
import com.example.demo.main.UserOrder;
import com.example.demo.mapper.PayWayMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UseSQLOfPayWay {

    @Autowired
    private PayWayMapper payWayMapper;

    public Integer insertByClass(PayWay payWay) {
        return payWayMapper.insert(payWay);
    }

    public PayWay selectByID(String orderID) {
        return payWayMapper.selectByPrimaryKey(orderID);
    }
}
